//
//  BroswerHistoryCell.m
//  LiteraryTune
//
//  Created by 陈雪丹 on 2018/5/20.
//  Copyright © 2018年 cxd. All rights reserved.
//

#import "BroswerHistoryCell.h"

@implementation BroswerHistoryCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.backWhiteView.layer.cornerRadius = 6.f;
    self.backWhiteView.layer.masksToBounds = YES;
}

- (void)setDataMdoel:(BrowserHistoryModel *)dataMdoel {
    _dataMdoel = dataMdoel;
    self.nameLabel.text = _dataMdoel.bname;
    if (_dataMdoel.jianjie.length == 0) {
        self.introLabel.text = @"简介：暂无简介";
    }else {
        self.introLabel.text = [NSString stringWithFormat:@"简介：%@",_dataMdoel.jianjie];
    }
    self.typeLabel.text = _dataMdoel.fname;
    self.dateLabel.text = [NSString stringWithFormat:@"浏览时间：%@",[CXDHelper timeTransferWithTimeString:_dataMdoel.add_time]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
